home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5302 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.3 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: need help on A1200/030 board programming
  5. Date: 12 Mar 1996 18:00:21 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4i4e3l$8oo@sunsystem5.informatik.tu-muenchen.de>
  9. References: <4gb9ao$104@sunsystem5.informatik.tu-muenchen.de>   <1189.6628T141T1560@wr.com.au> <38232664@kone.fipnet.fi>  <772.6632T572T2649@manawatu.gen.nz> <4h4ek7$lp1@sunsystem5.informatik.tu-muenchen.de> <1393.6635T1366T2221@manawatu.gen.nz>
  10. NNTP-Posting-Host: hphalle10.informatik.tu-muenchen.de
  11. Originator: fischerj@hphalle10.informatik.tu-muenchen.de
  12.  
  13.  
  14. In article <1393.6635T1366T2221@manawatu.gen.nz>, kurg@manawatu.gen.nz (Damon Davies) writes:
  15. |> Organization: PlaNet (NZ) Manawatu, Palmerston Nth, New Zealand +64 6 357-9245
  16. |> Lines: 41
  17. |> Message-ID: <1393.6635T1366T2221@manawatu.gen.nz>
  18. |> References: <4gb9ao$104@sunsystem5.informatik.tu-muenchen.de>
  19. |>      <1189.6628T141T1560@wr.com.au> <38232664@kone.fipnet.fi>
  20. |>     <772.6632T572T2649@manawatu.gen.nz> <4h4ek7$lp1@sunsystem5.informatik.tu-muenchen.de>
  21. |> NNTP-Posting-Host: kurg.manawatu.gen.nz
  22. |> Mime-Version: 1.0
  23. |> Content-Type: text/plain; charset=iso-8859-1
  24. |> Content-Transfer-Encoding: 8bit
  25. |> X-Newsreader: THOR 2.21 (Amiga;TCP/IP)
  26. |> 
  27. |> Juergen writes:
  28. |> 
  29. |> >In article <772.6632T572T2649@manawatu.gen.nz>, kurg@manawatu.gen.nz (Damon
  30. |> >Davies) writes:
  31. |> >|> >You dont have to "recognise" FAST-ram, just dont force stuff
  32. |> >|> >into CHIP-ram which does not need to be there, ie. only
  33. |> >|> >gfx data, samples, display memory etc.
  34. |> >|> 
  35. |> >|> >--                               _
  36. |> >|> >a Stellar programmer          _ //
  37. |> >|> >"Amiga - back for the future" \X/
  38. |> >|> 
  39. |> >|> Just an ellaboration: 
  40. |> >|> 
  41. |> >|> This is how you do it in assembler "Section TheCode,code" will put the
  42. |> >|> code  in fast ram preferably, but in chip if there is no fast."Section 
  43. |> >|> TheCode,code_f" will put the code in fast only! and fail if there is none.
  44. |> 
  45. |> >Forcing code to fast is imho nonsense.
  46. |> 
  47. |> >I only use alloc(fast) one time:
  48. |> 
  49. |> >  p=alloc(fast)
  50. |> >  if fail (p=alloc(chip); chip=true)
  51. |> 
  52. |> >  so my code will know if it has to copy to chip if I use a 0-cpu-pass
  53. |> >  routine.
  54. |> 
  55. |> >can't see any other reason for using the memf_fast flag...
  56. |> 
  57. |> mmm, you should learn too read Juergen, what I was pointing out is that
  58. |> there was an assembly directive that put code in fast PREFERABLY and in
  59. |> chip OTHERWISE.
  60.  
  61. don't know what you said, but I refered to (look up) 
  62. "TheCode,code_f will put the code in fast only!".
  63.  
  64. A directive that will "put code in fast PREFERABLY and in chip OTHERWISE"
  65. is not needed, this is system default.
  66.  
  67. |> You can do the same thing with the exec Alloc() and AllocVec() commands,
  68. |> instead of specifying MEMF_CHIP or MEMF_FAST in the flags, you may put
  69. |> MEMF_ANY and it will do as I describe above. So the code you describe is a
  70.       ^--- i.e. 0.
  71.  
  72. |> bit silly really, if you now how to use exec.... :^|
  73.  
  74. why silly. what would "now how to use exec" do in the case I described ?
  75. imho mine is most transparen, shortest, best way :)
  76.  
  77. |> 
  78. |> Damon.
  79. |> 
  80. |> 
  81. ------------------------------------------------------------------------
  82.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  83.  
  84.